package org.example.sys.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.example.sys.entity.TSysMenu;
import org.example.sys.entity.TSysRole;
import org.example.sys.entity.TSysUser;

import java.io.Serializable;
import java.util.List;

@Setter
@Getter
@ToString
public class UserDTO extends TSysUser implements Serializable {

    @Schema(description ="角色列表")
    @TableField(exist = false)
    private List<TSysRole> roles;

    @Schema(description ="权限列表")
    @TableField(exist = false)
    private List<TSysMenu> authorities;

}
